<?php
/*
+---------------------------------------------------------------------------
|   Arka-Tech Web Application v1.2.0
|   ========================================
|   by Christopher Hall
|   (c) 2009 Arka-Tech Productions
|   http://arka-tech.net
|   ========================================
|   Web: http://www.SITENAME.com
|   Time: Sat, 28 Feb 2009 9:05 AM
|   Release: RmVicnVhcnkgMjAwOSBMYXVuY2ggNA==
|   Email: ArkahnX@gmail.com
|   Licence Info: http://www.arka-tech.net/default.php?page=license
+---------------------------------------------------------------------------
*/

if ($_REQUEST['uninstall'] == 'yes') {
	output_uninstall();
} elseif ($_REQUEST['uninstall']) {
	system_uninstall_no();
} else {
	system_uninstall_start();
}

function system_uninstall_start() {
	$content = '<div class="system">
	' . lang_translate('installer-system-uninstall-yes','[span]Yes[/span] will remove ATWA completely!',array('[span]' => '<span style="font-size: 120%; font-weight: bold;">','[/span]' => '</span>')) . '
	<br />
	<br />
	<br />
	<br />
	<br />
	' . lang_translate('installer-system-uninstall-no','[span]No[/span] will bring you back to the system page.',array('[span]' => '<span style="font-size: 120%; font-weight: bold;">','[/span]' => '</span>')) . '
</div>
<div class="button">
	<form action="./index.php?uninstall=yes" method="post"><input class="iButton" type="submit" value="' . lang_translate('installer-system-yes','Yes') . '" /></form> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <form action="./index.php?uninstall=no" method="post"><input class="iButton" type="submit" value="' . lang_translate('installer-system-no','No') . '" /></form>
</div>';
	output_do($content,'system',lang_translate('installer-system-uninstall-really','Do you really want to uninstall ATWA?'));
}

function system_uninstall_no() {
	unset($_SECTION['password']);
	system_start('uninstall',$_SECTION['password']);
}
?>